/*
   Copyright (c) 2023 李伟国
   learner-platform is licensed under Mulan PSL v2.
   You can use this software according to the terms and conditions of the Mulan PSL v2.
   You may obtain a copy of Mulan PSL v2 at:
               http://license.coscl.org.cn/MulanPSL2
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.  
   See the Mulan PSL v2 for more details. 
*/

package cn.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@TableName("learner_permission")
public class Permission {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "name")
    private String name;
    @TableField(value = "authorization")
    private String authorization;
    @TableField(value = "router_path")
    private String routerPath;
    @TableField(value = "url")
    private String url;

    @TableField(value = "icon")
    private String icon;
    @TableField(value = "is_menu")
    private Boolean isMenu;

    @TableField(value = "levels")
    private String levels;
    @TableField(value = "code")
    private String code;

    @TableField(value = "pcode")
    private String pcode;
    @TableField(value = "pcodes")
    private String pcodes;

    @TableField(value = "status")
    private String status;

    @TableField(value = "rank_sort")
    private Integer rankSort;
}
